# Created by: Koop Mast <kwm@FreeBSD.org>
# $FreeBSD: head/multimedia/pitivi/Makefile 371331 2014-10-21 17:22:07Z mva $
#    $MCom: ports/multimedia/pitivi/Makefile,v 1.8 2006/04/26 19:31:01 ahze Exp $

PORTNAME=	pitivi
PORTVERSION=	0.94
CATEGORIES=	multimedia
MASTER_SITES=	GNOME

MAINTAINER=	kwm@FreeBSD.org
COMMENT=	GStreamer based non-linear audio/video editor

BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sqlite3>=2.7.8:${PORTSDIR}/databases/py-sqlite3 \
		${PYNUMPY} \
		${PYTHON_PKGNAMEPREFIX}scimath>=4.1.2:${PORTSDIR}/science/py-scimath
LIB_DEPENDS=	libnotify.so:${PORTSDIR}/devel/libnotify \
		libclutter-gtk-1.0.so:${PORTSDIR}/graphics/clutter-gtk3 \
		libclutter-gst-2.0.so:${PORTSDIR}/multimedia/clutter-gst

USES=		gmake pkgconfig libtool python:3,build gettext \
	desktop-file-utils tar:xz 
USE_GNOME=	gtk30 py3gobject3 intltool
USE_GSTREAMER1=	yes gnonlin python:3 good bad core editing-services gdkpixbuf \
		gl libav ${_RENDER_PLUGINS}
USE_PYTHON=	py3kplist
INSTALLS_ICONS=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-help --disable-static
USE_LDCONFIG=	yes

# Additional plugins taken from data/renderpresets/ files
_RENDER_PLUGINS=	faac lame mpeg2enc twolame vpx x264

post-install:
	${STRIP_CMD} \
		${STAGEDIR}${PREFIX}/lib/pitivi/python/pitivi/timeline/*.so

.include <bsd.port.mk>
